package com.AuthServer.pojo.form;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class VerifyInfoForm {
    @NotNull(message = "工号不能为null")
    @NotEmpty(message = "工号不能为空")
    @Size(min = 10, max = 10, message = "不是有效工号")
    private String userId;
    @NotNull(message = "姓名不能为null")
    @NotEmpty(message = "姓名不能为空")
    private String teacherName;
    @NotNull(message = "身份证号码不能为null")
    @NotEmpty(message = "身份证号码不能为空")
    @Pattern(regexp = "^\\d{15}|\\d{18}$|^([0-9]){7,18}([xX])?$|^\\d{8,18}|[0-9x]{8,18}|[0-9X]{8,18}?$",message = "身份证号码不合法")
    private String idCardNumber;
    @NotNull(message = "验证码不能为null")
    @NotEmpty(message = "验证码不能为空")
    @Size(min = 4, max = 4, message = "验证码为4位有效字符")
    private String graphicalCaptcha;
}
